@echo off
set EXISTS_FLAG=false  
set a=bXdebuga
echo %a%|findstr "Xdebug">nul&&set EXISTS_FLAG=true
if "%EXISTS_FLAG%"=="true" (  
    echo true  
) else (  
    echo false  
) 
pause